<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    (()=>{
        var o = {
            a: 1,
            get b(){
                return this.a +1
            },
            set b(v){
                this.a = v +this.a
            }
        }
        console.log('o',o)
    })()

    /* (()=>{
        var o1 = null;
        o1 = Object.create({
            a: 2,
            b: 3
        }, {
            bar: {
                get: function(){
                    return 11;
                },
                set: function(v){
                    console.log('v', v)

                }
            }
        })
        o1.c = 2
        setTimeout(()=>{
            console.log('o1',o1)
        }, 1000)
        // console.log('bar',o.bar)
      
        for(let i in o1){
            console.log(111, i)
        }
    })() */



</script>